<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>benny-sdl-classes: ParticleSystem Class Reference</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">benny-sdl-classes
   
   </div>
   <div id="projectbrief">Benny&#39;s assorted SDL game classes. Does exactly what it says on the can.</div>
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.5.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="inherits.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
</div>
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
  initNavTree('class_particle_system.html','');
</script>
<div id="doc-content">
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a>  </div>
  <div class="headertitle">
<div class="title">ParticleSystem Class Reference</div>  </div>
</div>
<div class="contents">
<!-- doxytag: class="ParticleSystem" -->
<p><code>#include &lt;<a class="el" href="_particle_system_8h_source.html">ParticleSystem.h</a>&gt;</code></p>

<p><a href="class_particle_system-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_particle_system.html#a9028ec8023c61773dd4a668c3ad8cc26">ParticleSystem</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructor.  <a href="#a9028ec8023c61773dd4a668c3ad8cc26"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_particle_system.html#a6bc725349a763b9d6817950cde16a93f">~ParticleSystem</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Destructor.  <a href="#a6bc725349a763b9d6817950cde16a93f"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_particle_system.html#a9775f7b0878b5dc0078dab380bbd0b78">add_particle</a> (Sint16 X, Sint16 Y, double XVEL, double YVEL, int AGEDIE)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Adds a particle to the particle system.  <a href="#a9775f7b0878b5dc0078dab380bbd0b78"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_particle_system.html#aa3fc6489c0b6f171e1e24c7d26ca5e20">add_particle</a> (Sint16 X, Sint16 Y, double XVEL, double YVEL, double XACC, double YACC, int AGEDIE)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_particle_system.html#a7c68610482c5265dea07c06cbd3ffadf">add_particle</a> (<a class="el" href="class_vec2_d.html">Vec2D</a> POS, <a class="el" href="class_vec2_d.html">Vec2D</a> VEL, int AGEDIE)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Adds a particle to the particle system.  <a href="#a7c68610482c5265dea07c06cbd3ffadf"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_particle_system.html#a601c0cd07c11e284c3574098d9bfe507">add_particle</a> (<a class="el" href="class_vec2_d.html">Vec2D</a> POS, <a class="el" href="class_vec2_d.html">Vec2D</a> VEL, <a class="el" href="class_vec2_d.html">Vec2D</a> ACC, int AGEDIE)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_particle_system.html#a35f6dd5d12f02441c8bcaf77f2a2f5cf">tick</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Runs the particle for a single tick.  <a href="#a35f6dd5d12f02441c8bcaf77f2a2f5cf"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_particle_system.html#a2f39b6888dfcf40c65ab01f9ae92fff5">draw_object</a> (SDL_Surface *screen, SDL_Rect camera)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_particle_system.html#a3a21e4b4a5a7e335507acdd422ac4183">load_sprite</a> (const char *path)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_particle_system.html#abef422e15aaf9df9bd11b773255a6bfc">countParticles</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_particle_system.html#a3caf199d39b55d87cb3f52e3e0eb4951">set_width</a> (Uint16 w)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_particle_system.html#a7a30993e2953aaffc248cdc300719311">set_height</a> (Uint16 h)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_particle_system.html#a8a1927d22cd0c971b373ca48327e5d17">set_dimensions</a> (Uint16 w, Uint16 h)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_particle_system.html#a35c8e94d3741c4e5e4bdf916ba694969">set_startcolour</a> (int r, int b, int g)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_particle_system.html#a979e7e658033035ebfef2cea9bb5328a">set_startcolour</a> (SDL_Colour colour)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_particle_system.html#a5167225ca689c04e042349bace09f9a5">set_endcolour</a> (int r, int b, int g)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_particle_system.html#ad8463c0c458a7b4130abde5600222d00">set_endcolour</a> (SDL_Colour colour)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_particle_system.html#a58856345afe15ca99c609a1c15264ffb">set_colourmode</a> (bool mode)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_particle_system.html#adc68e6d61cb7381147de95614c6ea3fa">delete_in_box</a> (const SDL_Rect &amp;delbox)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_particle_system.html#aa61c88cc5efe4850c9a2aa8641223c56">delete_in_box</a> (const <a class="el" href="class_box.html">Box</a> &amp;delbox)</td></tr>
</table>
<hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a9028ec8023c61773dd4a668c3ad8cc26"></a><!-- doxytag: member="ParticleSystem::ParticleSystem" ref="a9028ec8023c61773dd4a668c3ad8cc26" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ParticleSystem::ParticleSystem </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Constructor. </p>

</div>
</div>
<a class="anchor" id="a6bc725349a763b9d6817950cde16a93f"></a><!-- doxytag: member="ParticleSystem::~ParticleSystem" ref="a6bc725349a763b9d6817950cde16a93f" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ParticleSystem::~ParticleSystem </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Destructor. </p>

</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a9775f7b0878b5dc0078dab380bbd0b78"></a><!-- doxytag: member="ParticleSystem::add_particle" ref="a9775f7b0878b5dc0078dab380bbd0b78" args="(Sint16 X, Sint16 Y, double XVEL, double YVEL, int AGEDIE)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void ParticleSystem::add_particle </td>
          <td>(</td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>X</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>Y</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>XVEL</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>YVEL</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>AGEDIE</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Adds a particle to the particle system. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">X</td><td>the starting x position of the particle </td></tr>
    <tr><td class="paramname">Y</td><td>the starting y position of the particle </td></tr>
    <tr><td class="paramname">XVEL</td><td>the starting x velocity of the particle </td></tr>
    <tr><td class="paramname">YVEL</td><td>the starting y velocity of the particle </td></tr>
    <tr><td class="paramname">AGEDIE</td><td>the number of ticks until the particle will die (be deleted) </td></tr>
  </table>
  </dd>
</dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="class_particle_system.html#a7c68610482c5265dea07c06cbd3ffadf" title="Adds a particle to the particle system.">add_particle(Vec2D POS, Vec2D VEL, int AGEDIE)</a> </dd></dl>

</div>
</div>
<a class="anchor" id="aa3fc6489c0b6f171e1e24c7d26ca5e20"></a><!-- doxytag: member="ParticleSystem::add_particle" ref="aa3fc6489c0b6f171e1e24c7d26ca5e20" args="(Sint16 X, Sint16 Y, double XVEL, double YVEL, double XACC, double YACC, int AGEDIE)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void ParticleSystem::add_particle </td>
          <td>(</td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>X</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>Y</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>XVEL</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>YVEL</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>XACC</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>YACC</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>AGEDIE</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a7c68610482c5265dea07c06cbd3ffadf"></a><!-- doxytag: member="ParticleSystem::add_particle" ref="a7c68610482c5265dea07c06cbd3ffadf" args="(Vec2D POS, Vec2D VEL, int AGEDIE)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void ParticleSystem::add_particle </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_vec2_d.html">Vec2D</a>&#160;</td>
          <td class="paramname"><em>POS</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="class_vec2_d.html">Vec2D</a>&#160;</td>
          <td class="paramname"><em>VEL</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>AGEDIE</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Adds a particle to the particle system. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">POS</td><td>the starting position of the particle as a <a class="el" href="class_vec2_d.html">Vec2D</a> </td></tr>
    <tr><td class="paramname">VEL</td><td>the starting velocity of the particle as a <a class="el" href="class_vec2_d.html">Vec2D</a> </td></tr>
    <tr><td class="paramname">AGEDIE</td><td>the number of ticks until the particle will die (be deleted) </td></tr>
  </table>
  </dd>
</dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="class_particle_system.html#a9775f7b0878b5dc0078dab380bbd0b78" title="Adds a particle to the particle system.">add_particle(Sint16 X, Sint16 Y, double XVEL, double YVEL, int AGEDIE)</a> </dd></dl>

</div>
</div>
<a class="anchor" id="a601c0cd07c11e284c3574098d9bfe507"></a><!-- doxytag: member="ParticleSystem::add_particle" ref="a601c0cd07c11e284c3574098d9bfe507" args="(Vec2D POS, Vec2D VEL, Vec2D ACC, int AGEDIE)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void ParticleSystem::add_particle </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_vec2_d.html">Vec2D</a>&#160;</td>
          <td class="paramname"><em>POS</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="class_vec2_d.html">Vec2D</a>&#160;</td>
          <td class="paramname"><em>VEL</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="class_vec2_d.html">Vec2D</a>&#160;</td>
          <td class="paramname"><em>ACC</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>AGEDIE</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="abef422e15aaf9df9bd11b773255a6bfc"></a><!-- doxytag: member="ParticleSystem::countParticles" ref="abef422e15aaf9df9bd11b773255a6bfc" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int ParticleSystem::countParticles </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="adc68e6d61cb7381147de95614c6ea3fa"></a><!-- doxytag: member="ParticleSystem::delete_in_box" ref="adc68e6d61cb7381147de95614c6ea3fa" args="(const SDL_Rect &amp;delbox)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void ParticleSystem::delete_in_box </td>
          <td>(</td>
          <td class="paramtype">const SDL_Rect &amp;&#160;</td>
          <td class="paramname"><em>delbox</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="aa61c88cc5efe4850c9a2aa8641223c56"></a><!-- doxytag: member="ParticleSystem::delete_in_box" ref="aa61c88cc5efe4850c9a2aa8641223c56" args="(const Box &amp;delbox)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void ParticleSystem::delete_in_box </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="class_box.html">Box</a> &amp;&#160;</td>
          <td class="paramname"><em>delbox</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a2f39b6888dfcf40c65ab01f9ae92fff5"></a><!-- doxytag: member="ParticleSystem::draw_object" ref="a2f39b6888dfcf40c65ab01f9ae92fff5" args="(SDL_Surface *screen, SDL_Rect camera)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void ParticleSystem::draw_object </td>
          <td>(</td>
          <td class="paramtype">SDL_Surface *&#160;</td>
          <td class="paramname"><em>screen</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">SDL_Rect&#160;</td>
          <td class="paramname"><em>camera</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a3a21e4b4a5a7e335507acdd422ac4183"></a><!-- doxytag: member="ParticleSystem::load_sprite" ref="a3a21e4b4a5a7e335507acdd422ac4183" args="(const char *path)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int ParticleSystem::load_sprite </td>
          <td>(</td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>path</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a58856345afe15ca99c609a1c15264ffb"></a><!-- doxytag: member="ParticleSystem::set_colourmode" ref="a58856345afe15ca99c609a1c15264ffb" args="(bool mode)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void ParticleSystem::set_colourmode </td>
          <td>(</td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>mode</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a8a1927d22cd0c971b373ca48327e5d17"></a><!-- doxytag: member="ParticleSystem::set_dimensions" ref="a8a1927d22cd0c971b373ca48327e5d17" args="(Uint16 w, Uint16 h)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void ParticleSystem::set_dimensions </td>
          <td>(</td>
          <td class="paramtype">Uint16&#160;</td>
          <td class="paramname"><em>w</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Uint16&#160;</td>
          <td class="paramname"><em>h</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a5167225ca689c04e042349bace09f9a5"></a><!-- doxytag: member="ParticleSystem::set_endcolour" ref="a5167225ca689c04e042349bace09f9a5" args="(int r, int b, int g)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void ParticleSystem::set_endcolour </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>r</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>b</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>g</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="ad8463c0c458a7b4130abde5600222d00"></a><!-- doxytag: member="ParticleSystem::set_endcolour" ref="ad8463c0c458a7b4130abde5600222d00" args="(SDL_Colour colour)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void ParticleSystem::set_endcolour </td>
          <td>(</td>
          <td class="paramtype">SDL_Colour&#160;</td>
          <td class="paramname"><em>colour</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a7a30993e2953aaffc248cdc300719311"></a><!-- doxytag: member="ParticleSystem::set_height" ref="a7a30993e2953aaffc248cdc300719311" args="(Uint16 h)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void ParticleSystem::set_height </td>
          <td>(</td>
          <td class="paramtype">Uint16&#160;</td>
          <td class="paramname"><em>h</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a35c8e94d3741c4e5e4bdf916ba694969"></a><!-- doxytag: member="ParticleSystem::set_startcolour" ref="a35c8e94d3741c4e5e4bdf916ba694969" args="(int r, int b, int g)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void ParticleSystem::set_startcolour </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>r</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>b</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>g</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a979e7e658033035ebfef2cea9bb5328a"></a><!-- doxytag: member="ParticleSystem::set_startcolour" ref="a979e7e658033035ebfef2cea9bb5328a" args="(SDL_Colour colour)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void ParticleSystem::set_startcolour </td>
          <td>(</td>
          <td class="paramtype">SDL_Colour&#160;</td>
          <td class="paramname"><em>colour</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a3caf199d39b55d87cb3f52e3e0eb4951"></a><!-- doxytag: member="ParticleSystem::set_width" ref="a3caf199d39b55d87cb3f52e3e0eb4951" args="(Uint16 w)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void ParticleSystem::set_width </td>
          <td>(</td>
          <td class="paramtype">Uint16&#160;</td>
          <td class="paramname"><em>w</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a35f6dd5d12f02441c8bcaf77f2a2f5cf"></a><!-- doxytag: member="ParticleSystem::tick" ref="a35f6dd5d12f02441c8bcaf77f2a2f5cf" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int ParticleSystem::tick </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Runs the particle for a single tick. </p>
<p>Simulates the particle's behaviour for a single tick. This involves incrementing age, adding acceleration to velocity, adding velocity to position and adjusting colour fade as needed. </p>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li>include/<a class="el" href="_particle_system_8h_source.html">ParticleSystem.h</a></li>
<li>src/<a class="el" href="_particle_system_8cpp.html">ParticleSystem.cpp</a></li>
</ul>
</div>
</div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="class_particle_system.html">ParticleSystem</a>      </li>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Defines</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>


    <li class="footer">Generated on Sun Oct 23 2011 04:30:01 for benny-sdl-classes by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.5.1 </li>
   </ul>
 </div>


</body>
</html>
